package com.boolib.animate.commons.base.face;

import org.springframework.transaction.annotation.Transactional;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author nier
 * @create 2020-02-19 17:58
 */

public interface BaseSqlUpdateService<T> {


     @Transactional
     T  updateByIdNoQuery(T t);

     @Transactional
     T updateById(T t);

     @Transactional
     List<T> updateByExample(T t, Example example);

     @Transactional
     List<T> updateByExampleSelective(T t, Example example);

     @Transactional
     T updateByPrimaryKeySelective(T t);

     @Transactional
     T updateByPrimaryKeySelective(Long id, T t);
}
